package com.recharge.utils;

import org.springframework.stereotype.Service;

/**
 * 处理话费结果集
 * @author qq
 *
 */
@Service
public class ResultCodeHfQuXun {

	public  String processResultCode(String processCode){
		String result ="";
		if("0".equals(processCode)){
			result = "等待充值";
			return result;
		}else if("1".equals(processCode)){
			result = "充值成功";
			return result;
		}else if("2".equals(processCode)){
			result = "充值中";
			return result;
		}else if("9".equals(processCode)){
			result = "充值失败已退款";
			return result;
		}else if("5001".equals(processCode)){
			result = "代理商不存在";
			return result;
		}else if("5002".equals(processCode)){
			result = "代理商余额不足";
			return result;
		}else if("5003".equals(processCode)){
			result = "此商品暂时不可购买";
			return result;
		}else if("5004".equals(processCode)){
			result = "充值号码与所选商品不符";
			return result;
		}else if("5005".equals(processCode)){
			result = "充值请求验证错误";
			return result;
		}else if("5006".equals(processCode)){
			result = "代理商订单号重复";
			return result;
		}else if("5007".equals(processCode)){
			result = "所查询的订单不存在";
			return result;
		}else if("5008".equals(processCode)){
			result = "交易亏损不能充值";
			return result;
		}else if("5009".equals(processCode)){
			result = "IP不符";
			return result;
		}else if("5010".equals(processCode)){
			result = "商品编号与充值金额不符";
			return result;
		}else if("5011".equals(processCode)){
			result = "商品数量不支持";
			return result;
		}else if("5012".equals(processCode)){
			result = "缺少必要参数或参数值不合法";
			return result;
		}else if("9999".equals(processCode)){
			result = "未知错误,需进入平台查询核实";
			return result;
		}
		return null;
	}
}
